package ml.coursedesign.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author likeqc.top
 * @since 2021-04-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class CourseClass implements Serializable {

  private static final long serialVersionUID = 1L;

  /** 课程班级表id */
  @TableId(type = IdType.AUTO)
  private Integer id;

  /** 课程号（外键） */
  private Integer courseId;

  /** 班级 */
  @TableField("classNum")
  private Integer classNum;

  /** 班级名称 */
  private String name;

  /** 授课教师id */
  private Integer teacherId;
}
